package ${package.Mapper};
<#if cfg.enableGetId == 1>
<#assign keyCount=0>
<#list table.fields as field>
 <#if field.keyFlag>
  <#assign keyCount=keyCount+1>
 </#if>
</#list>
</#if>
import ${package.Entity}.${entity};
import ${superMapperClassPackage};
<#if (cfg.enableGetId == 1) && (keyCount gt 1)>
import java.util.HashMap;
</#if>
<#if (cfg.enableGetId == 1) && (keyCount gt 0)>
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
</#if>
/**
 * <p>
 * ${table.comment!} Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
<#if kotlin>
interface ${table.mapperName} : ${superMapperClass}<${entity}>
<#else>
public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {
 <#if cfg.enableGetId == 1>
 <#if keyCount == 1>
  <#list table.fields as field>
   <#if field.keyFlag>
    List<${field.propertyType}> getIdList(@Param(Constants.WRAPPER) Wrapper wrapper);
   </#if>
  </#list>
 </#if>
 <#if keyCount gt 1>
   List<HasMap<String,Object>> getIdList(@Param(Constants.WRAPPER) Wrapper wrapper);
 </#if>
 </#if>
}
</#if>

